package com.csun.dsms.model.dto.poor;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-22 10:07
 * @description: TODO
 */
@Data
public class ApplyPoorDto {

    /**
     * 特困人员id
     */
//    @NotNull(message = "{poor.id.null}")
    private Long poorId;

    /**
     * 审核状态 0-待审核 1-审核通过 2-审核不通过
     */
    @NotNull(message = "{poor.apply.null}")
    @Range(min = 1, max = 2, message = "{poor.apply.range.error}")
    private Integer apply;

    /**
     * 审核不通过原因
     */
    private String reason;

    private List<Long> poorIds;

}
